package starter;

import gui.Screen;
import java.io.File;
import java.net.URISyntaxException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.SwingUtilities;
import model.GameField;

/**
 *
 * @author Joachim
 */
public class StartUp {
    public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {

            @Override
            public void run() {
                try {
                    GameField f = new GameField(new File(getClass().getResource("/resources/lvl1.txt").toURI()));
                    Screen s = new Screen(f);
                } catch (URISyntaxException ex) {
                    Logger.getLogger(StartUp.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        });
    }
    
}
